package viz.controller.prep
{
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.interfaces.IProxy;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	
	import viz.model.prefs.proxies.PreferenceProxy;
	import viz.view.mediators.FSMModuleMediator;

	public class PopulatePrefsCmd extends SimpleCommand
	{
		override public function execute(note:INotification):void{
			var module:FSMModuleMediator = FSMModuleMediator( facade.retrieveMediator( FSMModuleMediator.NAME ) ),
				preferenceProxy:IProxy = IProxy( facade.retrieveProxy( PreferenceProxy.NAME ) );			
			preferenceProxy.setData(  module.preferences );
		}
		
	}
}